<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script src="https://unpkg.com/vuex@3.6.2/dist/vuex.js"></script>
    <script src="https://unpkg.com/vue-router/dist/vue-router.js"></script>
    <style>
       
        .x{
            border: 1px solid red;
            width: 100%;
            height: 500px;
            overflow: auto;

        }
        /* .x::-webkit-scrollbar{
            display: none;
        } */
    </style>
</head>
<body>

    <div id="app">
        
        <div @scroll="scrollEvent" class="x" @click="click"> 
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>
            <p>你好</p>

        </div>    

    </div>

    


    <script>
        var app = new Vue({
            el:"#app",
            methods: {
                scrollEvent(e){
                    console.log(123);
                    console.log(e);
                },
                click(){
                    console.log(123);
                }
            },
        });
    </script>
</body>
</html>